<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:s="http://jboss.org/seam/faces"
	xmlns:o="http://omnifaces.org/ui"
	xmlns:of="http://omnifaces.org/functions"
	xmlns:sig="http://java.sun.com/jsf/composite/components">
		
	<sig:decorate label="Nome">
		<h:inputText value="#{funcionarioList.instance.pessoaFisica.nome}" styleClass="nome" />
	</sig:decorate>
	
	<sig:decorate label="#{messages['label.cargo']}">
	    <p:selectOneMenu value="#{funcionarioList.instance.cargo}">
	    	<f:selectItem itemLabel="#{messages['label.selecione']}" />
	    	<f:selectItems value="#{cargoList.resultList}" itemLabel="#{cargo.nome}" itemValue="#{cargo}" var="cargo" />
	    	<f:converter converterId="entityConverter" />
	    </p:selectOneMenu>
	</sig:decorate>
	
	<sig:decorate label="#{messages['label.departamento']}">
	    <p:selectOneMenu value="#{funcionarioList.instance.departamento}">
	    	<f:selectItem itemLabel="#{messages['label.selecione']}" />
	    	<f:selectItems value="#{departamentoList.resultList}" itemLabel="#{departamento.nome}" itemValue="#{departamento}" var="departamento" />
	    	<f:converter converterId="entityConverter" />
	    </p:selectOneMenu>
	</sig:decorate>	
	
	<br clear="all" />
</ui:composition>